const Router = require('@koa/router');
const fun = require('../controller/system/generatorTableController');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX}` });
const str = '/generator';

//**代码生成逻辑比较复杂暂时搁置，完善其他逻辑 */

router.get(str + '/list', fun.listTables); // 查询已导入的表列表
router.get(str + '/schema/list', fun.listSchemaTables); // 查询数据库未导入的表列表
router.post(str + '/import', fun.importTables); // 导入表

module.exports = router;
